from django.shortcuts import render
from rest_framework.generics import ListAPIView
from apps.oaauth.models import  OADepartment
from apps.oaauth.serializers import DepartmentSerializer

# Create your views here.

class DepartmentListView(ListAPIView):
    queryset =  OADepartment.objects.all()
    serializer_class = DepartmentSerializer
